package com.tarena.lbs.user.service.Impl;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.user.dao.repository.Impl.UserGroupRepositoryImpl;
import com.tarena.lbs.user.pojo.param.AdminLoginParam;
import com.tarena.lbs.user.pojo.param.UserLoginParam;
import com.tarena.lbs.user.pojo.vo.LoginVO;
import com.tarena.lbs.user.service.LoginService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LoginServiceImpl implements LoginService {
    @Autowired
    private UserGroupRepositoryImpl userGroupRepository;

    @Override
    public LoginVO login(UserLoginParam param) {
        log.debug("用户登录校验业务参数{}" , param);
        LoginVO loginVO = userGroupRepository.login(param);
        return loginVO ;
    }


}
